package org.sction.bean;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.apache.log4j.Level;

/**
 * @author 作者 : Administrator
 * @version 创建时间：2013-5-28 下午2:54:24
 * 
 *          类说明
 */
public class Log4jBean {
	private long sn;
	private Date date;
	private Level level;
	private String srcClass = "";
	private String info = "";
	private String threadName = "";
	private int elapsedTime = 0;
	DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public void setDate(String date) {
		try {
			this.date = df.parse(date);
		} catch (Exception e) {
		}
	}

	public Level getLevel() {
		return level;
	}

	public void setLevel(Level level) {
		this.level = level;
	}

	public void setLevel(String level) {
		this.level = Level.toLevel(level);
	}

	public String getSrcClass() {
		return srcClass;
	}

	public void setSrcClass(String srcClass) {
		this.srcClass = srcClass;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public String getThreadName() {
		return threadName;
	}

	public void setThreadName(String threadName) {
		this.threadName = threadName;
	}

	public int getElapsedTime() {
		return elapsedTime;
	}

	public void setElapsedTime(int elapsedTime) {
		this.elapsedTime = elapsedTime;
	}

	public long getSn() {
		return sn;
	}

	public void setSn(long sn) {
		this.sn = sn;
	}

	public DateFormat getDf() {
		return df;
	}

	public void setDf(DateFormat df) {
		this.df = df;
	}

}
